package javabasics;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TestPatter {

    public static void main(String[] args) {
        String url = "http://app1.cas.com:9001/hello";
        Pattern pattern = Pattern.compile(".*hello");
        Matcher matcher = pattern.matcher(url);
        Boolean f = matcher.matches();
        System.out.println(f);
    }
}
